package club.justwill.single.bean;

import club.justwill.single.persistence.jpo.Projects;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by xiangnan on 15-12-26.
 */
public class ProjectsResp {
    private String projectId ;
    private String userId ;
    private String title ;
    private String advantage ;
    private String cover;
    private String name ;
    private String type ;
    private String financing ;
    private String getFinancing;
    private String overflow ;
    private String endTime;
    private String tags ;
    private String startMoney ;
    private String everyMaxBuy;
    private String publishTime;
    private String status ;
    private String province;
    private String city;
    private String area;
    private String modelId;
    private String dispatchTime;
    private String peopleNum;
    private String hits;

    private List<ProjectIntroduceResp> introduceList;
    private List<SkusResp> skusList;
    private List<OrdersResp> ordersRespList;

    public ProjectsResp() {}
    public ProjectsResp(Projects projects) {
        this.projectId = projects.getProjectId()+"";
        this.userId = projects.getUserId()+"";
        this.title = projects.getTitle()+"";
        this.advantage = projects.getAdvantage()+"";
        this.cover = projects.getCover()+"";
        this.name = projects.getName()+"";
        this.type = projects.getType()+"";
        this.financing = projects.getFinancing()+"";
        this.overflow = projects.getOverflow()+"";
        this.endTime = projects.getEndTime().getTime()+"";
        this.tags = projects.getTags()+"";
        this.startMoney = projects.getStartMoney()+"";
        this.everyMaxBuy = projects.getEveryMaxBuy()+"";
        this.publishTime = projects.getPublishTime().getTime()+"" ;
        this.status = projects.getStatus()+"";
        this.province = projects.getProvince()+"";
        this.city = projects.getCity()+"";
        this.area = projects.getArea()+"";
        this.modelId = projects.getModelId()+"";
        this.dispatchTime = projects.getDispatchTime()+"";
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAdvantage() {
        return advantage;
    }

    public void setAdvantage(String advantage) {
        this.advantage = advantage;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public List<ProjectIntroduceResp> getIntroduceList() {
        if(introduceList == null) {
            introduceList = new ArrayList<ProjectIntroduceResp>();
        }
        return introduceList;
    }

    public void setIntroduceList(List<ProjectIntroduceResp> introduceList) {
        this.introduceList = introduceList;
    }

    public List<SkusResp> getSkusList() {
        if(skusList == null) {
            skusList = new ArrayList<SkusResp>();
        }
        return skusList;
    }

    public void setSkusList(List<SkusResp> skusList) {
        this.skusList = skusList;
    }

    public List<OrdersResp> getOrdersRespList() {
        if(ordersRespList == null) {
            ordersRespList = new ArrayList<OrdersResp>();
        }
        return ordersRespList;
    }
    public void setOrdersRespList(List<OrdersResp> ordersRespList) {
        this.ordersRespList = ordersRespList;
    }

    public String getEndTime() {
        return endTime;
    }

    public String getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(String dispatchTime) {
        this.dispatchTime = dispatchTime;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getFinancing() {

        return financing;
    }

    public void setFinancing(String financing) {
        this.financing = financing;
    }

    public String getOverflow() {
        return overflow;
    }

    public void setOverflow(String overflow) {
        this.overflow = overflow;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getStartMoney() {
        return startMoney;
    }

    public void setStartMoney(String startMoney) {
        this.startMoney = startMoney;
    }

    public String getEveryMaxBuy() {
        return everyMaxBuy;
    }

    public void setEveryMaxBuy(String everyMaxBuy) {
        this.everyMaxBuy = everyMaxBuy;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getGetFinancing() {
        return getFinancing;
    }

    public void setGetFinancing(String getFinancing) {
        this.getFinancing = getFinancing;
    }

    public String getPeopleNum() {
        return peopleNum;
    }

    public void setPeopleNum(String peopleNum) {
        this.peopleNum = peopleNum;
    }

    public String getHits() {
        return hits;
    }

    public void setHits(String hits) {
        this.hits = hits;
    }
}
